package common.tool.box.system.domain;

import common.tool.box.common.annotation.Excel;
import common.tool.box.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 用户与文件关联对象 sys_user_file
 *
 * @author jiazekai
 * @date 2022-11-28
 */
public class SysUserFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 用户账号 */
    @Excel(name = "用户账号")
    private String userName;

    /** 文件序列号 */
    private String fileId;

    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;

    /** 文件原始名称 */
    @Excel(name = "文件原始名称")
    private String originalName;

    /** 文件新名称 */
    @Excel(name = "文件新名称")
    private String newName;

    /** 文件大小(MB) */
    @Excel(name = "文件大小(KB)")
    private Double fileSize;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setFileId(String fileId)
    {
        this.fileId = fileId;
    }

    public String getFileId()
    {
        return fileId;
    }
    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }
    public void setOriginalName(String originalName)
    {
        this.originalName = originalName;
    }

    public String getOriginalName()
    {
        return originalName;
    }
    public void setNewName(String newName)
    {
        this.newName = newName;
    }

    public String getNewName()
    {
        return newName;
    }

    public void setFileSize(Double fileSize)
    {
        this.fileSize = fileSize;
    }

    public Double getFileSize()
    {
        return fileSize;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("fileId", getFileId())
                .append("filePath", getFilePath())
                .append("originalName", getOriginalName())
                .append("newName", getNewName())
                .append("fileSize", getFileSize())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}